cmake_minimum_required(VERSION 2.8)
project(SPLIC)

set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++14 -O2")
set(CMAKE_CXX_FLAGS -pthread)
set(OpenCV_DIR "/home/xyt/install/opencv/install/share/OpenCV")


find_package(OpenCV REQUIRED)
include_directories(
        ${OpenCV_INCLUDE_DIRS}
        "/usr/include/eigen3/"
        ${PROJECT_SOURCE_DIR}/Include
)


add_executable(ip_show ip_show.cpp)
target_link_libraries(ip_show
        ${OpenCV_LIBS}
)

add_executable(XNetSDKTest XNetSDKTest.cpp)
set(LINK_DIR /home/xyt/pro406/ip_camera_opencv/Lib)

link_directories(${LINK_DIR})
target_link_libraries(XNetSDKTest
        ${OpenCV_LIBS}
        ${LINK_DIR}/libXNetSDK.so
        libavcodec.so
        libavdevice.so
        libavfilter.so
        libavformat.so
        libavutil.so
        libpostproc.so
        libswresample.so
        libswscale.so
        # ${PROJECT_SOURCE_DIR}/Lib/libXNetSDK.so
)